package cn.buk.tms.hotel.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * 酒店可用接口API的返回
 * @author yfdai
 */
public class HotelAvailDto {

  /**
   * 是否可定
   */
  private boolean status;

  /**
   * 剩余房量
   * -1代表可预订任意间数
   * 除-1外，预定间数不大于availableRooms时才可下单
   */
  private int availableRooms;

  private String code;

  private String message;

  private List<HotelRoomPriceDto> everydayPrices;

  public boolean isStatus() {
    return status;
  }

  public void setStatus(boolean status) {
    this.status = status;
  }

  public int getAvailableRooms() {
    return availableRooms;
  }

  public void setAvailableRooms(int availableRooms) {
    this.availableRooms = availableRooms;
  }

  public List<HotelRoomPriceDto> getEverydayPrices() {
    if (everydayPrices == null) {
      everydayPrices = new ArrayList<>();
    }
    return everydayPrices;
  }

  public void setEverydayPrices(List<HotelRoomPriceDto> everydayPrices) {
    this.everydayPrices = everydayPrices;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }
}
